package com.yougong.api.modules.customer.model.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;

/**
 * 用户登录参数
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class LoginDto {

    /**
     * 用户名
     */
    @NotEmpty
    @ApiModelProperty(value = "用户名",required = true)
    private String username;

    /**
     * 密码
     */
    @NotEmpty
    @ApiModelProperty(value = "密码",required = true)
    private String password;

    /**
     * 验证码key
     */
    @ApiModelProperty(value = "验证码key",required = true)
    private String captchaId;

    /**
     * 验证码
     */
    @ApiModelProperty(value = "验证码",required = true)
    private String code;
}
